package top.krwlc.server.pojo;

import java.util.Date;

public class Product {
    //产品ID
    private String pid;

    //价格
    private double price;

    //开始时间
    private Date stime;

    //结束时间
    private Date etime;



    //管理员上架产品,写入数据库
    public Product(String pid, double price, Date stime, Date etime) {
        this.pid = pid;
        this.price = price;
        this.stime = stime;
        this.etime = etime;
    }


    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getStime() {
        return stime;
    }

    public void setStime(Date stime) {
        this.stime = stime;
    }

    public Date getEtime() {
        return etime;
    }

    public void setEtime(Date etime) {
        this.etime = etime;
    }
}
